package javabasic.forth;

/**
 * @author Jonny Long
 * @date 2021/2/19 15:38
 */
public class Manager extends Employee {
    private int age;

    public Manager(int age) {
        this.age = age;
    }

    public Manager(String name, double salary, int age) {
        super(name, salary);
        this.age = age;
    }

    @Override
    public void show() {
        System.out.println("Manager--show");
    }

    @Override
    public String toString() {
        return "Manager{" +super.toString()+
                "age=" + age +
                '}';
    }
}
